package dcartes.draw;


import java.awt.Color;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.GridBagConstraints;
import java.awt.event.ActionEvent;
import java.awt.event.KeyEvent;
import java.beans.PropertyChangeListener;

import javax.swing.Action;
import javax.swing.BorderFactory;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.border.EtchedBorder;

public class DrawOvalPanel extends JPanel {

	private static final long serialVersionUID = 1L;
	private JLabel label = null;
	private JButton okButton = null;
	private JButton cancelButton = null;
	/**
	 * This is the default constructor
	 */
	public DrawOvalPanel() {
		super();
		initialize();
	}

	/**
	 * This method initializes this
	 * 
	 * @return void
	 */
	private void initialize() {
		GridBagConstraints gridBagConstraints2 = new GridBagConstraints();
		gridBagConstraints2.gridx = 1;
		gridBagConstraints2.gridy = 4;
		GridBagConstraints gridBagConstraints1 = new GridBagConstraints();
		gridBagConstraints1.gridx = 0;
		gridBagConstraints1.gridy = 4;
		GridBagConstraints gridBagConstraints = new GridBagConstraints();
		gridBagConstraints.gridx = 0;
		gridBagConstraints.gridwidth = 2;
		gridBagConstraints.gridy = 0;
		label = new JLabel();
		label.setText("Is the image configured?");
		label.setForeground(new Color(0, 190, 255));
		label.setBackground(Color.white);
		label.setName("label");
		this.setSize(330, 35);
		this.setLayout(new FlowLayout());
		this.setBorder(BorderFactory.createEtchedBorder(EtchedBorder.LOWERED));
		this.setPreferredSize(new Dimension(330, 35));
		this.setBackground(Color.white);
		this.add(label, null);
		this.add(getOkButton(), null);
		this.add(getCancelButton(), null);
	}

	/**
	 * This method initializes okButton	
	 * 	
	 * @return javax.swing.JButton	
	 */
	public JButton getOkButton() {
		if (okButton == null) {
			okButton = new JButton();
			okButton.setAction(new Action(){
			
				public void addPropertyChangeListener(PropertyChangeListener listener) {
				}
			
				public Object getValue(String key) {
					// TODO Auto-generated method stub
					return null;
					
				}
			
				public boolean isEnabled() {
					// TODO Auto-generated method stub
					return false;
					
				}
			
				public void putValue(String key, Object value) {
				}
			
				public void removePropertyChangeListener(PropertyChangeListener listener) {
				}
			
				public void setEnabled(boolean b) {
				}
			
				public void actionPerformed(ActionEvent e) {
					
					 
				}});
			okButton.setName("okButton");
			okButton.setText("Yes");
			okButton.setMnemonic(KeyEvent.VK_S);
			okButton.setPreferredSize(new Dimension(75, 20));
		}
		return okButton;
	}

	/**
	 * This method initializes cancelButton	
	 * 	
	 * @return javax.swing.JButton	
	 */
	public JButton getCancelButton() {
		if (cancelButton == null) {
			cancelButton = new JButton();
			cancelButton.setAction(new Action(){
			
				public void addPropertyChangeListener(PropertyChangeListener listener) {
				}
			
				public Object getValue(String key) {
					// TODO Auto-generated method stub
					return null;
					
				}
			
				public boolean isEnabled() {
					// TODO Auto-generated method stub
					return false;
					
				}
			
				public void putValue(String key, Object value) {
				}
			
				public void removePropertyChangeListener(PropertyChangeListener listener) {
				}
			
				public void setEnabled(boolean b) {
				}
			
				public void actionPerformed(ActionEvent e) {
				}});
			cancelButton.setPreferredSize(new Dimension(75, 20));
			cancelButton.setMnemonic(KeyEvent.VK_C);
			cancelButton.setText("Cancel");
		}
		return cancelButton;
	}

}  //  @jve:decl-index=0:visual-constraint="10,10"
